#!/bin/bash

cd "/etc/nginx/"

openssl genrsa -out server.key 2048

openssl req -new -key server.key -out server.csr -subj "/CN=flask.com"

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

